﻿using System.Windows.Forms;

namespace LockImage.Gui.Dialog
{
    public partial class ChoosePasswordDialog
    {
        private void checkPassword()
        {
            if (typePasswordTextBox.Text != repeatPasswordTextBox.Text)
            {
                MessageBox.Show("Passwords do not match!");
            }
            else
            {
                this.gui.SaveTo(this.typePasswordTextBox.Text);
                this.Close();
            }
        }

        private void close()
        {
            base.Close();
        }
    }
}